package controller

import (
	"day01/project_learning/chapter_05/config"
	"day01/project_learning/chapter_05/domain"
	"fmt"
	"github.com/gin-gonic/gin"
)

func InsertUsers(c *gin.Context) {
	fmt.Println("测试mysql 插入")
	db := config.GetDB()
	user := domain.User{Phone: "12222", Name: "xiao ka lou mi"}
	result := db.Create(&user)
	fmt.Println(result)
}
